﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using DiarySocial.Models;

namespace DiarySocial.ViewModels
{
    public class DiaryPost
    {
        [Required]
        [StringLength(512, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 2)]
        public string Body { get; set; }
        [Required]
        [DefaultValue(PrivacyType.Private)]
        public int Privacy { get; set; }
    }
}